package com.tt.controller;


import com.tt.entity.vo.EchartsLineTrendBoxOfficeVO;
import com.tt.service.EchartsLineTrendBoxOfficeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * Echarts票房趋势折线图表.需要定期更新.	此表记录只有一行,更新直接覆盖,不追加. 前端控制器
 * </p>
 *
 * @author TP
 * @since 2023-03-04 09:14:11
 */
@RestController
@RequestMapping("/echarts")
public class EchartsLineTrendBoxOfficeController {

    private final EchartsLineTrendBoxOfficeService echartsLineTrendBoxOfficeServiceImpl;

    public EchartsLineTrendBoxOfficeController(EchartsLineTrendBoxOfficeService echartsLineTrendBoxOfficeServiceImpl) {
        this.echartsLineTrendBoxOfficeServiceImpl = echartsLineTrendBoxOfficeServiceImpl;
    }

    @GetMapping("/line")
    public EchartsLineTrendBoxOfficeVO getEchartsLineTrend() {
        return echartsLineTrendBoxOfficeServiceImpl.getEchartsLineTrend();
    }
}
